#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QTimer>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    m_mqServer61850 = new MQServer61850;
    QTimer *t_timer = new QTimer;
    t_timer->start(100);
    connect(t_timer, &QTimer::timeout, this, [this](){
        ui->label_num->setText(QString::number(m_mqServer61850->getConnectNum()));
    });
}

MainWindow::~MainWindow()
{
    delete ui;
}

